package com.kung.qvs.entity;

import android.graphics.drawable.Drawable;

import com.kung.qvs.R;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

import me.goldze.mvvmhabit.utils.Utils;

@Entity
public class ProductInfoBean {
    @Id(autoincrement = true)
    private Long _id;
    @Unique
    private String ProductId;
    private String ProductName;
    private String ProductClassId;

    @Transient
    private boolean isSelected = false; //是否被选中
    @Transient
    private int textColorName = Utils.getContext().getResources().getColor(R.color.trash_type_normal);
    @Transient
    private int textColorPrice = Utils.getContext().getResources().getColor(R.color.trash_type_price_normal);
    @Transient
    private Drawable bgDrawable = Utils.getContext().getResources().getDrawable(R.drawable.shape_trash_type_corner, null);

    @Generated(hash = 1474001414)
    public ProductInfoBean(Long _id, String ProductId, String ProductName,
            String ProductClassId) {
        this._id = _id;
        this.ProductId = ProductId;
        this.ProductName = ProductName;
        this.ProductClassId = ProductClassId;
    }
    @Generated(hash = 178872844)
    public ProductInfoBean() {
    }
    public Long get_id() {
        return this._id;
    }
    public void set_id(Long _id) {
        this._id = _id;
    }
    public String getProductId() {
        return this.ProductId;
    }
    public void setProductId(String ProductId) {
        this.ProductId = ProductId;
    }
    public String getProductName() {
        return this.ProductName;
    }
    public void setProductName(String ProductName) {
        this.ProductName = ProductName;
    }
    public String getProductClassId() {
        return this.ProductClassId;
    }
    public void setProductClassId(String ProductClassId) {
        this.ProductClassId = ProductClassId;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }

    public int getTextColorName() {
        return textColorName;
    }

    public void setTextColorName(int textColorName) {
        this.textColorName = textColorName;
    }

    public int getTextColorPrice() {
        return textColorPrice;
    }

    public void setTextColorPrice(int textColorPrice) {
        this.textColorPrice = textColorPrice;
    }

    public Drawable getBgDrawable() {
        return bgDrawable;
    }

    public void setBgDrawable(Drawable bgDrawable) {
        this.bgDrawable = bgDrawable;
    }
}
